package com.test.springbatch;


import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;

/**
 * @author hadoop
 */
public class MyFirstTasklet implements Tasklet {

    /* (non-Javadoc) 
     * @see org.springframework.batch.core.step.tasklet.Tasklet#execute(org.springframework.batch.core.StepContribution, org.springframework.batch.core.scope.context.ChunkContext) 
     */
    public RepeatStatus execute(StepContribution arg0, ChunkContext arg1) throws Exception {

        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }

        return RepeatStatus.FINISHED;
    }

} 